#include"DList.h"


void test1()
{
	DList s;
	DList* plist = &s;
	plist = InitDList(plist);
	DListfrontpush(plist, 4);
	DListfrontpush(plist, 3);
	DListfrontpush(plist, 2);
	DListfrontpush(plist, 1);
	print(plist);

	DListbackpush(plist, 10);
	print(plist);

	DListfrontpop(plist);
	print(plist);

	DListbackpop(plist);
	print(plist);

	ListInsert(ListFind(plist, 3) , 12);
	print(plist);

	ListErase(ListFind(plist, 2));
	print(plist);

	printf("%d", ListSize(plist));

	ListDestory(plist);
	plist = NULL;
}



int main()
{
	test1();
	return 0;
}